<!DOCTYPE html>
<html>
  <head>
  	<meta charset="UTF-8">
    <title>roles.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <script type="text/javascript" src="js/jquery_3.2.1.js"></script>
	<script type="text/javascript">
	$(function(){
		$.getJSON("rolesajax",function(data){
			var s=JSON.stringify(data);
			alert(s);
			var r=$("#roles");
			$.each(data,function(i,d){
				r.append("<li>"+d.id+","+d.name+","+d.remark+"</li>");
			});
		});
	});
	</script>
  </head>
  
  <body>
      <h2>当前的用户角色</h2>
      <div>
      	<ul id="roles">
      	</ul>
      </div>
  </body>
</html>
